package org.dhy.elasticsearch.annotate;

import org.dhy.elasticsearch.enums.Logical;

import java.lang.annotation.*;

/**
 * @author longye
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface EsField {

    String analyzer() default "ik_max_word";

    String searchAnalyzer() default "ik_smart";

    boolean searchable() default true;

    Logical logical() default Logical.AND;
}
